package com.yuanchu.goods.dto;

import com.yuanchu.common.validator.ValidationGroups;
import com.yuanchu.goods.entity.YoshopCategoryEntity;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 修改商品分类dto
 * @date: 2023-12-25 22:56
 */
@Data
@ToString
public class EditGoodsCategoryDto implements Serializable {
    @NotNull(message = "分类id不能为空", groups = {ValidationGroups.Update.class})
    @NotNull(message = "分类id不能为空", groups = {ValidationGroups.Delete.class})
    private Integer categoryId;
    private Integer status;
    private YoshopCategoryEntity form;
}
